<%@ include file = "/js/_of_js.jsp"%>
<%@ include file = "/js/_js_for_select.jsp"%>
<%@ include file = "/js/_js_for_window.jsp"%>
<script>
    function goback()
    {
        window.location.href = "<%= request.getContextPath()%>/moduleinfor/sysframe/user/root.jsp?back=true";
    }

    function addPosts()
    { 
        openWinForAList("Org2PostsAList.jsp?ALType=Org2Post&rootOrgCode=null&rootRoleCode=null&selectedNodeType=POST&isMultSelected=true","newwin");
    }
    
    function delPosts()
    {
        this.delSelectedOption(detailForm.postIds);
    }

    function delAllPosts()
    {
        this.delAllOptions(detailForm.postIds);
    }

    function setValue(itemIds,itemNames,itemTypes)
    {
        for(var i = 0; i < itemIds.length; i ++)
        {
            if(!this.checkOptionValue(detailForm.postIds,itemIds[i]))
                this.addOption(detailForm.postIds,itemIds[i],itemNames[i]);
        }
    }
</script>
<form name="detailForm" action="Controller.jsp" method="post">
     <tr>
        <td class="detailTD11">帐号<font color="red"> *</font> </td>
        <td class="detailTD12">
            <input type="text" size="16" name="account" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("account")%></font>
        </td>
        <td class="detailTD11">生日&nbsp;&nbsp;</td>
        <td class="detailTD12">
            <input type="text" size="16" name="birthday" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                 <image style="cursor:hand" src="<%= request.getContextPath()%>/images/detail/calendar.gif" onclick="fPopCalendar(detailForm.birthday,detailForm.birthday);">
                 &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("birthday")%></font>
        </td>
     </tr>
     <tr>
        <td class="detailTD21">姓<font color="red"> *</font> </td>
        <td class="detailTD22">
            <input type="text" size="16" name="familyName" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("familyName")%></font>
        </td>
        <td class="detailTD21">名<font color="red"> *</font> </td>
        <td class="detailTD22">
            <input type="text" size="16" name="givenName" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("givenName")%></font>
        </td>
     </tr>
     <tr>
        <td class="detailTD11">地址&nbsp;&nbsp;</td>
        <td class="detailTD12" colspan="3">
            <input type="text" size="86" name="address" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("address")%></font>
        </td>
     </tr>
     <tr>
        <td class="detailTD21">email&nbsp;&nbsp;</td>
        <td class="detailTD22">
            <input type="text" size="16" name="email" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("email")%></font>
        </td>
        <td class="detailTD21">电话&nbsp;&nbsp;</td>
        <td class="detailTD22">
            <input type="text" size="16" name="phone" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("phone")%></font>
        </td>
     </tr>
     <tr>
        <td class="detailTD11">个人主页&nbsp;&nbsp;</td>
        <td class="detailTD12">
            <input type="text" size="16" name="homeSite" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("homeSite")%></font>
        </td>
        <td class="detailTD11">手机号&nbsp;&nbsp;</td>
        <td class="detailTD12">
            <input type="text" size="16" name="mobile" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("mobile")%></font>
        </td>
     </tr>
     <tr>
        <td class="detailTD21">密码有效期<font color="red"> *</font> </td>
        <td class="detailTD22">
            <input type="text" size="16" name="pwLimtDate" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
             <image style="cursor:hand" src="<%= request.getContextPath()%>/images/detail/calendar.gif" onclick="fPopCalendar(detailForm.pwLimtDate,detailForm.pwLimtDate);">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("pwLimtDate")%></font>
        </td>
        <td class="detailTD21">帐号有效期<font color="red"> *</font> </td>
        <td class="detailTD22">
            <input type="text" size="16" name="idLimtDate" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
             <image style="cursor:hand" src="<%= request.getContextPath()%>/images/detail/calendar.gif" onclick="fPopCalendar(detailForm.idLimtDate,detailForm.idLimtDate);">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("idLimtDate")%></font>
        </td>
     </tr>
     <tr>
        <td class="detailTD11">密码错误次数(0为无限)<font color="red"> *</font> </td>
        <td class="detailTD12">
            <input type="text" size="16" name="pwErrorNum" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("pwErrorNum")%></font>
        </td>
        <td class="detailTD11" >密码错误锁定次数(0为无限)<font color="red"> *</font> </td>
        <td class="detailTD12">
            <input type="text" size="16" name="pwErrorLock" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                &nbsp;&nbsp;<font color="red"><%= vr.getErrMess("pwErrorLock")%></font>
        </td>
     </tr>
    <tr >
        <td class="detailTD21">岗&nbsp;&nbsp;&nbsp;&nbsp;位&nbsp;&nbsp;  </td>
        <td colspan="3" class="detailTD22" colspan="3">
            <table width="50%">
                <tr>
                    <td>
                        <select name="postIds" size="10" multiple style="width=3in;"></select>
                    </td>
                <td>
                    <table>
                        <tr>
                            <td><input type="button"  value="移到首位" onclick = "move2Head(detailForm.postIds)" ></td>
                        </tr>
                        <tr>
                            <td><input type="button"  value="上    移" onclick = "move2Pre(detailForm.postIds)" ></td>
                        </tr>
                        <tr>
                            <td><input type="button"  value="下    移" onclick = "move2Next(detailForm.postIds)" ></td>
                        </tr>
                        <tr>
                            <td><input type="button"  value="移到末尾" onclick = "move2End(detailForm.postIds)" ></td>
                        </tr>
                    </table>
                </td>
                <td>
                    <table>
                        <tr>
                            <td><input type="button"  value="添    加" onclick = "addPosts()" ></td>
                        </tr>
                        <tr>
                            <td><input type="button"  value="删    除" onclick = "delPosts()" ></td>
                        </tr>
                        <tr>
                            <td><input type="button"  value="全    删" onclick = "delAllPosts()" ></td>
                        </tr>
                    </table>
                </td>
               </tr>
            </table>
            <font color="red"><%= vr.getErrMess("postIds")%></font>
        </td>       
    </tr>
     <tr>
        <td class="detailTD11">备注&nbsp;&nbsp;</td>
        <td class="detailTD12" colspan="3">
                <textarea name="remark"  cols="34" rows="5" onkeyup="nextOfFocused(this)" afterFocusedJS="" of="true">
                <%= remark%></textarea>&nbsp;&nbsp;<font color="red"><%= vr.getErrMess("remark")%></font>
        </td>
     </tr>
        <input type="hidden" name="id">
        <input type="hidden" name="serviceURL">
        <input type="hidden" name="pri">
</form>
<textarea style="display:none" name="tempRemark"><%= remark%></textarea>
